<template>
  <van-swipe :autoplay="3000" indicator-color="white">
    <van-swipe-item v-for="(item,index) of topImages" :key="index">
      <van-image
        :src="item"
        width="100%"
        height="300px"
        fit="cover"></van-image>
    </van-swipe-item>
  </van-swipe>
</template>

<script>
  export default {
    name: "DetailSwiper",
    props: {
      topImages: {
        type: Array,
        default() {
          return []
        }
      }
    }
  }
</script>

<style scoped>

</style>
